﻿namespace ConsoleApplication.TODO
{

    public enum Animal { 
        Dog = 1,
        Cat,
        Bird
    }

    class AnimalTypeAttribute:System.Attribute
    {
        protected Animal thePet;
        public Animal Pet{
        get{return thePet;}
            set{thePet = value;}
        }

        public AnimalTypeAttribute(Animal pet){
        thePet = pet;
        }


    }

    class AnimalTypeTestClass {
        [AnimalType(Animal.Dog)]
        public void DogMethod() { }

        [AnimalType(Animal.Cat)]
        public void CatMethod() { }

        [AnimalType(Animal.Bird)]
        public void BirdMethod() { }
    }
}
